<?php
// +----------------------------------------------------------------------
// | Description: 规则
// +----------------------------------------------------------------------
// | Author: linchuangbin <linchuangbin@honraytech.com>
// +----------------------------------------------------------------------

namespace app\admin\controller;

class Dictionary extends ApiCommon
{

    public function region()
    {
        $ruleModel = model('Dictionary');
        $param=$this->param;
        $type=!empty($param['type']) ? $param['type'] : '';
        $data = $ruleModel->getRegion($type);
        return resultArray(['data' => $data]);
    }
    public function reference(){
        $ruleModel = model('Dictionary');
        $param=$this->param;
        $type=!empty($param['type']) ? $param['type'] : '';
        $data = $ruleModel->getReference($type);
        return resultArray(['data' => $data]);
    }
    public function transaction(){
        $ruleModel = model('Dictionary');
        $param=$this->param;
        $type=!empty($param['type']) ? $param['type'] : '';
        $data = $ruleModel->getTransaction($type);
        return resultArray(['data' => $data]);
    }
    public function delivery(){
        $ruleModel = model('Dictionary');
        $param=$this->param;
        $type=!empty($param['type']) ? $param['type'] : '';
        $data = $ruleModel->getDelivery($type);
        return resultArray(['data' => $data]);
    }
}
